#
# Makefile for the lombo spi drivers.
#

obj-y += lombo_spi.o

ifeq ($(CONFIG_ARCH_LOMBO_N9), y)
SPI_CSP_PLATFORM := n9v1
else
SPI_CSP_PLATFORM := n7v1
endif

SOURCE := $(srctree)/$(src)/csp/$(SPI_CSP_PLATFORM)/spi_operate.c

ifneq ($(wildcard $(SOURCE)), )
obj-y += csp/$(SPI_CSP_PLATFORM)/
else
obj-y += liblombo_spi.o
$(obj)/liblombo_spi.o: $(src)/csp/$(SPI_CSP_PLATFORM)/liblombo_spi
	cp $< $@
endif
